<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>

<table border="1">
    <thead>
    <tr>
        <th>序号</th>
        <th>ID</th>
        <th>作者姓名</th>
        <th>著作</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>

        {% for author in all_authors %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>{{ author.pk }}</td>
                <td>{{ author.name }}</td>
                <td>
                    {% for book in author.books.all %}
                        《{{ book }}》

                    {% endfor %}

                </td>
                <td>
                    <a href="/author_del/?pk={{ author.pk }}">删除</a>
                    <a href="/author_edit/?pk={{ author.pk }}">编辑</a>

                </td>

            </tr>
        {% endfor %}


    </tbody>


</table>

</body>
</html>